#ifndef _microMemory_H_
#define _microMemory_H_


/* 字节对齐 */
#define MR_MEMORY_ROUNDUP_VALUE     sizeof(uint32_t)
/* 使x对n字节对齐 */
#define mrMemoryRoundUp(x)          (((x) + (MR_MEMORY_ROUNDUP_VALUE) - 1) & (~((MR_MEMORY_ROUNDUP_VALUE) - 1)))


void *pvMrMemoryMalloc(size_t size);
void *pvMrMemoryCalloc(size_t nitems, size_t size);
void *pvMrMemoryRealloc(void *pvMem, size_t size);
void vMrMemoryFree(void *pvMem);


#endif // _microMemory_H_
